package ae.pcfc.cldos.online.common.clddb.domain.manager.provider;

import org.springframework.stereotype.Repository;

import ae.pcfc.cldos.online.common.clddb.dao.AttachmentTypeDAO;
import ae.pcfc.cldos.online.common.clddb.domain.AttachmentType;
import ae.pcfc.cldos.online.common.clddb.domain.manager.AttachmentTypeDOM;

/**
 * 
 * @author arosa
 *
 */
@Repository
public class AttachmentTypeDOMImpl implements AttachmentTypeDOM{

	private AttachmentTypeDAO attachmentTypeDAO;
	
	public void setAttachmentTypeDAO(AttachmentTypeDAO attachmentTypeDAO) {
		this.attachmentTypeDAO = attachmentTypeDAO;
	}
	
	/**
	 * 
	 * Get attachment type by code
	 */
	public AttachmentType getAttachmentTypeByCode(String code) {
		return attachmentTypeDAO.getAttachmentTypeByCode(code);
	}
	
}
